<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>三栏布局--flex</title>
	</head>
	<style>
		* {
			margin: 0;
		}

		.main {
			display: flex;
			height: 100vh;
		}

		.left {
			width: 300px;
			background: teal;
		}

		.center {
			/* 宽度自由放大缩小，最小宽度500px */
			flex: 500px;
			background: pink;
		}

		.right {
			width: 300px;
			background: tan;
		}
	</style>

	<body class="main">
		<div class="left">左</div>
		<div class="center">中-flex</div>
		<div class="right">右</div>
	</body>
</html>
